<c:set var='view' value='/commandes' scope='session' />
<div id="main">
    <!-- BEGIN SLIDESHOW -->
    
    <!-- END SLIDESHOW -->
    
    <!-- BEGIN CONTEINER -->
    <div id="contentc">
        <div id="titleExt">
      <div class="left"><fmt:message key='commandeM'/></div>
      <div class="sp"></div>
    </div>
	<table cellpadding="7">
	    <tbody align="left">
                <tr>
                    <th><fmt:message key='date'/></th>
                    <th><fmt:message key='total'/></th>
                    <th><fmt:message key='state'/></th>
                    
                </tr>
                    <c:forEach var="commande" items="${commandes}">
                        <tr>
                        <td>${commande.date.date}/${commande.date.month}/${commande.date.year+1900}</td>
                        <td><fmt:formatNumber value="${(commande.totalCommande < 80) ? (commande.totalCommande+24.9) : commande.totalCommande}" pattern="0.00"/>&euro;</td>
                        <td>${etats.get(commande.etatcommande).description}</td>
                        <td><a HREF="<c:url value='/command?${commande.idcommande}'/>"><fmt:message key='detail'/></a></td>
                        </tr>
                    </c:forEach>         
	    </tbody>
	</table>
	<br/>
    </div>
    <!-- END CONTENT -->
    <div class="sp"></div>
  </div>
  <div class="sp"></div>
</div>